package com.example.socialcontactapp.dao;

import com.example.socialcontactapp.entity.BuyVipRecorder;
import com.example.socialcontactapp.entity.Chat;
import com.example.socialcontactapp.entity.Record;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: ruohao
 * @Date: 2022/8/2
 **/
public interface ChatDao {
    List<Chat> queryBefore(long sender, long receiver, long before);

    List<Chat> queryAfter(long sender, long receiver, long after);

    List<Chat> query(long sender, long receiver);

    List<Chat> queryBetween(long sender, long receiver, long before, long after);

    int queryBetween(long sender, long receiver, String content);
}
